package com.example.baselibrary.db.table;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * 文件下载table
 *
 * @author Chen.qi on 2018/4/3.
 */

@DatabaseTable(tableName = "fileDownLoad")
public class FileDownLoadTable {

    /**
     * 保存文件的路径
     */
    @DatabaseField(columnName = "saveFilePath", id = true)
    public String saveFilePath;

    /**
     * 文件下载状态
     * * 0: 未下载  1：暂停、继续下载 2：下载完成
     */
    @DatabaseField(columnName = "fileDoLoadStatus")
    public int fileDoLoadStatus;

    /**
     * 总文件大小
     */
    @DatabaseField(columnName = "fileLongSize")
    public long fileLongSize;

    @Override
    public String toString() {
        return "FileDownLoadTable{" +
                "saveFilePath='" + saveFilePath + '\'' +
                ", fileDoLoadStatus=" + fileDoLoadStatus +
                ", fileLongSize=" + fileLongSize +
                '}';
    }
}
